package pers.whj.rpc.server;

import java.lang.reflect.Method;

/**
 * 服务实例类
 */
public class ServiceInstance {
    /**
     * 服务实现类的对象
     */
    private Object object;
    /**
     * 服务方法
     */
    private Method method;

    public ServiceInstance(Object object, Method method) {
        this.object = object;
        this.method = method;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }
}
